package net.wanho.commons.dao;

import net.wanho.commons.exception.DAOException;
import net.wanho.commons.exception.DataAccessException;

import java.util.List;
import java.util.Map;

public abstract interface BaseDAO<T> {
    boolean insert(T entity) throws DAOException ;
    boolean delete(String id) throws DAOException ;
    boolean update(T entity) throws DAOException ;
    T findById(String id) throws DAOException ;
    List<T> selectAll() throws DAOException;
    List<T> selectByCond(Map<String,String> condMap) throws DAOException ;
}
